package model.weapon
{
	import flash.utils.Dictionary;
	
	import embeds.EmbedRes;
	
	import org.robotlegs.mvcs.Actor;
	
	
	/**
	 * 武器情报数据模型
	 * @author £iang
	 * 
	 */	
	public class WeaponModel extends Actor
	{
		//-----------------------------
		// variables
		//-----------------------------
		
		/** 当前搜索的武器id */
		public var curSearchWeaponId:int;
		/** 武器其他使用数值数据 */
		public var weaponOtherInfoData:Dictionary;
		/** 当前需要显示旋律的音色类型 */
		public var curShowMelodyType:int;
		
		//-----------------------------
		// properties
		//-----------------------------
		
		//-----------------------------
		// setter&getter
		//-----------------------------
		
		//-----------------------------
		// methods
		//-----------------------------
		
		/**
		 * 初始化数据 
		 * 
		 */		
		public function initData():void
		{
			var parseXML:XML;
			
			weaponOtherInfoData = new Dictionary();
			parseXML = XML( new EmbedRes.WEAPON_OTHER_XML() );
			weaponOtherInfoData.great_sword = parseXML.great_sword;
			weaponOtherInfoData.long_sword = parseXML.long_sword;
			weaponOtherInfoData.short_sword = parseXML.short_sword;
			weaponOtherInfoData.double_sword = parseXML.double_sword;
			weaponOtherInfoData.hammer = parseXML.hammer;
			weaponOtherInfoData.flute = parseXML.flute;
			weaponOtherInfoData.lance = parseXML.lance;
			weaponOtherInfoData.gun_lance = parseXML.gun_lance;
			weaponOtherInfoData.slash_axe = parseXML.slash_axe;
			weaponOtherInfoData.charge_axe = parseXML.charge_axe;
			weaponOtherInfoData.bug_stick = parseXML.bug_stick;
			weaponOtherInfoData.light_bow_gun = parseXML.light_bow_gun;
		}
		
		//-----------------------------
		// events
		//-----------------------------
		
		//-----------------------------
		// dispose
		//-----------------------------
		
		//-----------------------------
		// construction
		//-----------------------------
		
		/**
		 * 构造函数
		 *
		 */
		public function WeaponModel()
		{
			super();
		}
	}
}